package com.egao.common.module.company.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 职位(Position)表实体类
 *
 * @author dl
 */
@Data
@ApiModel(description = "职位信息")
@TableName("position")
public class Position implements Serializable  {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("公司编号")
    private Integer companyId;

    @ApiModelProperty("职位名称")
    private String name;

    @ApiModelProperty("职位类型（全职、兼职、实习）")
    private String type;

    @ApiModelProperty("学历（博士、硕士、本科）")
    private String degree;

    @ApiModelProperty("职位人数 验证非空和长度")
    private String number;

    @ApiModelProperty("工作地点")
    private String address;

    @ApiModelProperty("本校专业")
    private String major;

    @ApiModelProperty("岗位薪资")
    private String salary;

    @ApiModelProperty("薪资类型  0自定义 1面议")
    private String salaryType;

    @ApiModelProperty("最低薪资")
    private Integer salaryMin;

    @ApiModelProperty("最高薪资")
    private Integer salaryMax;

    @ApiModelProperty("职位职责")
    private String duty;

    @ApiModelProperty("职位状态 0：正常 1：失效")
    private String state;

    @ApiModelProperty("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("逻辑删除 0正常 1删除")
    private Integer deleted;

    // @ApiModelProperty("期望薪资")
    // @TableField(exist = false)
    // private String salary;

    @ApiModelProperty("本校专业名称")
    @TableField(exist = false)
    private String majorName;

    @ApiModelProperty("职位匹配度")
    @TableField(exist = false)
    private String matching;

    @ApiModelProperty("原始编号id")
    private String oldId;

}